/**
 * Copyright &copy; 2012-2016 < All rights reserved.
 */
package com.jeemicro.weixin.modules.cms.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeemicro.weixin.common.persistence.Page;
import com.jeemicro.weixin.common.service.CrudService;
import com.jeemicro.weixin.modules.cms.dao.CmsHuiyuanDao;
import com.jeemicro.weixin.modules.cms.entity.CmsHuiyuan;

/**
 * 会员管理Service
 * @author zmrid
 * @version 2017-07-18
 */
@Service
@Transactional(readOnly = true)
public class CmsHuiyuanService extends CrudService<CmsHuiyuanDao, CmsHuiyuan> {

	public CmsHuiyuan get(String id) {
		return super.get(id);
	}
	
	public List<CmsHuiyuan> findList(CmsHuiyuan cmsHuiyuan) {
		return super.findList(cmsHuiyuan);
	}
	
	public Page<CmsHuiyuan> findPage(Page<CmsHuiyuan> page, CmsHuiyuan cmsHuiyuan) {
		return super.findPage(page, cmsHuiyuan);
	}
	
	@Transactional(readOnly = false)
	public void save(CmsHuiyuan cmsHuiyuan) {
		super.save(cmsHuiyuan);
	}
	
	@Transactional(readOnly = false)
	public void delete(CmsHuiyuan cmsHuiyuan) {
		super.delete(cmsHuiyuan);
	}
	
	public List<CmsHuiyuan> findListByOpenid(String openid) {
		return dao.findListByOpenid(openid);
	}
	//老会员激活
	@Transactional(readOnly = false)
	public int lhyjh(CmsHuiyuan cmsHuiyuan) {
		
			return dao.lhyjh(cmsHuiyuan);
		}
}